//@json
function main(tbl){
	let num=dao.count("sys_unit",Cnd.where("pid","=",tbl.id))
	if(num>0){
		return {code:-1,msg:'存在子菜单无法删除!'}
	}
	dao.delete("sys_menu",Cnd.where("id","=",tbl.id))
	return {code:0,msg:'删除成功!'}
}